package cn.base.web.support.transcode;

import lombok.Data;

import java.io.Serializable;
@Data
public class TranscodeColumn implements Serializable{
	// RowMapper<TranscodeColumn>,
	/*//operation 运算
	public static final String OPERATION="operation";
	//add +, divide /,multiply *
	public static final String OPERATION_ADD="add";
	public static final String OPERATION_DIVIDE="divide";
	public static final String OPERATION_MULTIPLY="multiply";*/

	private String columnName;
	private String newColumnName;
	private String formatType;
	private String codeKey;
	private String fromPattern;
	private String toPattern;
	private String pattern;
	private String formula;
	private String sqlName;

//	@Override
//	public TranscodeColumn mapRow(ResultSet rs, int rowNum) throws SQLException {
//		TranscodeColumn transcodeColumn = new TranscodeColumn();
//		transcodeColumn.setCodeKey(rs.getString("code_key"));
//		transcodeColumn.setColumnName(rs.getString("column_name"));
//		transcodeColumn.setFormatType(rs.getString("format_type"));
//		transcodeColumn.setFormula(rs.getString("formula"));
//		transcodeColumn.setFromPattern(rs.getString("from_pattern"));
//		transcodeColumn.setPattern(rs.getString("pattern"));
//		transcodeColumn.setToPattern(rs.getString("to_pattern"));
//        return transcodeColumn;
//	}
	
}
